<?php $this->widget('application.components.AdminMenu',array('nameId'=>'editcategorypost')); ?>
<!-- Subheader -->			
<div id="subheader" class="clearfix">
	<h2>Новости</h2>
	<a href="#"><span>Cancel</span></a>
</div>
<!-- /End Subheader -->

<!-- Main Content Area -->			
<div style="height: max-height;" id="content">
	
	<div id="inner">
	    <table class="hover" width="100%">
	        <thead>
	            <tr>
	                <th class="checkbox">
	                    <div class="checker" id="uniform-">
	                        <span>
	                            <input type="checkbox" style="opacity:0;">
	                        </span>
	                    </div>
	               </th>
	               <th>Text category</th>
	             
	           </tr>
	        </thead>
	        <tbody>
			<?php foreach( $tag as $key ) { ?>
	            <tr>
	                <td>
	                    <div class="checker" id="uniform-">
	                        <span class="">
	                            <input type="checkbox" style="">
	                        </span>
	                    </div>
	                </td>
	                <td align="center">
                            <?php echo $key->post_tag_name; ?>
                            <p class="links">
                                <?php echo '<a href="/admin/qpost/editcategory/'.$key->id_tag_post.'">Редактировать</a>'; ?>
                                <a href="#">Preview</a>
                                <?php echo '<a href="/admin/qpost/delcategory/'.$key->id_tag_post.'">Удалить</a>'; ?>
                            </p>
                        </td>
	               
	            </tr>
			<?php } ?>
	          
	        </tbody>
	    </table>
	    
	    <!-- Pagination -->
	 
	   <div class="pagination">
	   <!--
	        <a title="First Page" href="#">« First</a>
	        <a title="First Page" href="#">« Previous</a>
	        <a title="First Page" href="#">1</a>
	        <a title="First Page" href="#">2</a>
	        <a title="First Page" class="current" href="#">3</a>
	        <a title="First Page" href="#">4</a>
	        <a title="First Page" href="#">Next »</a>
	        <a title="First Page" href="#">Last »</a> -->
	           <?php     $this->widget('application.components.MyPagination',array('count_page'=>$count_page,'show_link'=>4)); ?>
	    </div>
	    <!-- end pagination -->
	</div><!-- end inner -->
	
</div><!-- End main content area -->